package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.CourseMaterial;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CourseMaterialRepository extends JpaRepository<CourseMaterial,Integer>, JpaSpecificationExecutor<CourseMaterial> {

    List<CourseMaterial> findAllByCourseId(Integer id);
}
